package net.wanho.controller;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import net.wanho.service.MenuService;
import net.wanho.vo.AjaxResult;
import net.wanho.vo.MenuVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2025-09-26 14:31
 * Description：<描述>
 */
@Api(tags = "04.菜单管理接口")
@RestController
@RequestMapping("menus")
@RequiredArgsConstructor
public class MenuController {

    private final MenuService menuService;

    @GetMapping
    public AjaxResult findMenus(){
        List<MenuVo> list =  menuService.findMenu();
        return AjaxResult.success(list);
    }

}
